<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

		
        <?php echo form_tag_for($form, '@sf_guard_user', array('class' => 'form uniform label-top', 'id' => 'user_form')) ?>
          <?php echo $form->renderHiddenFields(true) ?>
			<div class="x8">
				
				<div class="tab_container">
					<ul class="tabs">
						<li><a href="#tab_user">Benutzer</a></li>
						<li><a href="#tab_profile">Profil</a></li>
						<li><a href="#tab_permissions">Berechtigungen</a></li>
						<li><a href="#tab_groups">Gruppen</a></li>
					</ul>
					
					<div class="tab_content_container">
						
						<div id="tab_user" class="tab_content">
							<div class="field">
								<?php echo $form['first_name']->renderLabel();?>
								<?php echo $form['first_name']->render();?>
							</div>
							<div class="field">
								<?php echo $form['last_name']->renderLabel();?>
								<?php echo $form['last_name']->render();?>
							</div>
							<div class="field">
								<?php echo $form['email_address']->renderLabel();?>
								<?php echo $form['email_address']->render();?>
							</div>
							<div class="field">
								<?php echo $form['username']->renderLabel();?>
								<?php echo $form['username']->render();?>
							</div>
							<div class="field">
								<?php echo $form['password']->renderLabel();?>
								<?php echo $form['password']->render();?>
							</div>
							<div class="field">
								<?php echo $form['password_again']->renderLabel();?>
								<?php echo $form['password_again']->render();?>
							</div>
							<div class="field">
								<?php echo $form['is_active']->renderLabel();?>
								<?php echo $form['is_active']->render();?>
							</div>
							<div class="field">
								<?php echo $form['is_super_admin']->renderLabel();?>
								<?php echo $form['is_super_admin']->render();?>
							</div>
						</div>
						
						<div id="tab_profile" class="tab_content">
							<div class="field">
								<?php echo $form['Profile']['member_id']->renderLabel();?>
								<?php echo $form['Profile']['member_id']->render();?>
							</div>
							<div class="field">
								<?php echo $form['Profile']['owning_organizational_unit_id']->renderLabel();?>
								<?php echo $form['Profile']['owning_organizational_unit_id']->render();?>
							</div>
						</div>
						
						<div id="tab_permissions" class="tab_content">
							<div class="field">
								<?php echo $form['permissions_list']->renderLabel();?>
								<?php echo $form['permissions_list']->render();?>
							</div>
						</div>
						
						<div id="tab_groups" class="tab_content">
							<div class="field">
								<?php echo $form['groups_list']->renderLabel();?>
								<?php echo $form['groups_list']->render();?>
							</div>
						</div>
						
					</div>
					
				</div>
				
			</div>
			<div class="x4">
				<h2 class="box">Werkzeugbox<img alt="Werkzeugbox" src="<?php echo image_path('icons/content_werkzeugbox.png');?>" /></h2>
				<table class="box_table subnavigation">
					<tbody>
						<tr>
							<td><a href="#" onClick="document.forms['user_form'].submit();return false;"><img alt="&Auml;nderungen speichern" src="<?php echo image_path('icons/content_subnavigation_speichern.png');?>" />&Auml;nderungen speichern</a></td>
						</tr>
						<tr>
							<td><a href="<?php echo url_for('sf_guard_user')?>"><img alt="Abbrechen und zur &Uuml;bersicht" src="<?php echo image_path('icons/content_subnavigation_zurueck.png');?>" />Abbrechen</a></td>
						</tr>
					</tbody>
				</table>
			</div>
		</form>